home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17069 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: library.erc.clarkson.edu!rpi!not-for-mail
  2. From: Kyle.F.Downey@williams.edu (Kyle F. Downey)
  3. Newsgroups: comp.lang.c++,comp.lang.c++.moderated
  4. Subject: Dynamic class definitions in C++: possible?
  5. Date: 13 Apr 1996 13:09:03 -0000
  6. Organization: Williams College, Williamstown MA
  7. Sender: cppmods@netlab.cs.rpi.edu
  8. Approved: Dietmar.Kuehl@uni-konstanz.de
  9. Message-ID: <4ko91f$1cb@netlab.cs.rpi.edu>
  10. NNTP-Posting-Host: netlab.cs.rpi.edu
  11. X-Original-Date: 13 Apr 1996 08:58:32 -0400
  12.  
  13. I want to know if the following has been done before (I am told it is
  14. possible in Java, but I am interested in doing it in C++):
  15.  
  16. 1) load a C++ class definition from a file
  17. 2) convert it to an internal format
  18. 3) use the class just as you would a compiled class
  19.  
  20. This would allow you to add a class at run-time based on a
  21. text/user-supplied definition. It seems to me that this would involve
  22. either run-time compiling and linking, or (if the loadable file
  23. were actually a compiled object file), implementing your own dynamic
  24. linking scheme. If the latter, can anyone refer me to useful books,
  25. articles, code libraries or Web pages on dynamic linking?
  26.  
  27. If it would be possible to do this without compiled code, that would
  28. be much better, obviously. I have some ideas of how to implement an
  29. emulation of this behavior, but I wanted to check to see if anyone had
  30. walked/fallen on this road before first.
  31.  
  32. Please email responses to 96kfd@williams.edu. Thanks in advance.
  33.  
  34. regards,
  35. kd
  36.  
  37.       [ Articles to moderate: mailto:c++-submit@netlab.cs.rpi.edu ]
  38.       [  Read the C++ FAQ: http://www.connobj.com/cpp/cppfaq.htm  ]
  39.       [  Moderation policy: http://www.connobj.com/cpp/guide.htm  ]
  40.       [      Comments? mailto:c++-request@netlab.cs.rpi.edu       ]
  41.